package com.cloudlead.commonData.vo;

import com.cloudlead.common.lang.persistence.AbstractIdEntity;

import com.cloudlead.commonData.action.validator.BaseFleetCustomerValidatorGroup.*;

import javax.validation.constraints.Size;
import com.cloudlead.common.lang.annotation.BelongsTos;
import com.cloudlead.common.lang.annotation.Domain;
import org.joda.time.DateTime;
import com.cloudlead.common.lang.annotation.Label;
import java.lang.String;
import javax.validation.constraints.NotNull;
import java.lang.Integer;
import com.cloudlead.commonData.vo.BaseCompany;

/**
 * BaseFleetCustomer is a Codegen vo type
 */
@Label("BaseFleetCustomer")
@Domain(domainClassName="com.cloudlead.commonData.entity.EBaseFleetCustomer")
@BelongsTos(values = {
	@com.cloudlead.common.lang.annotation.BelongsTo(property="baseCompany", rootField="baseCompanyId")
})
public class BaseFleetCustomer extends AbstractIdEntity<String> {

    private static final long serialVersionUID =14659956801945L;    
    @Label("开户名称")
    @Size(max=45)
    private String accountName;

    @Label("企业银行账号")
    @Size(max=45)
    private String accountNumber;

    @Label("开户银行")
    @Size(max=45)
    private String bank;

    @Label("所属车队公司")
    private BaseCompany baseCompany;

    @Label("车辆总数")
    private Integer carsCount;

    @Label("市")
    @Size(max=100)
    private String city;

    @Label("备注")
    @Size(max=45)
    private String comments;

    @Label("企业地址")
    @Size(max=45)
    private String companyAddress;

    @Label("联系人")
    @Size(max=45)
    private String companyContact;

    @Label("传真")
    @Size(max=45)
    private String companyFax;

    @Label("企业名称")
    @Size(max=45)
    private String companyName;

    @Label("电话1")
    @Size(max=45)
    private String companyPhone1;

    @Label("电话2")
    @Size(max=45)
    private String companyPhone2;

    @Label("企业名称简称")
    @Size(max=45)
    private String companyShortName;

    @Label("企业类型")
    @Size(max=45)
    private String companyType;

    @Label("email")
    @Size(max=255)
    private String email;

    @Label("删除标记")
    @Size(max=45)
    private String flag;

    @NotNull(groups={Update.class})
    @Label("ID")
    @Size(max=24)
    private String id;

    @Label("手机")
    @Size(max=20)
    private String phone;

    @Label("省份")
    @Size(max=100)
    private String province;

    @Label("qq")
    @Size(max=20)
    private String qq;

    @Label("维护时间")
    private DateTime registerTime;

    @Label("状态")
    @Size(max=20)
    private String state;

    public String getAccountName() {
        return accountName;
    }

    public void setAccountName(String accountName) {
        this.accountName = accountName;
    }

    public String getAccountNumber() {
        return accountNumber;
    }

    public void setAccountNumber(String accountNumber) {
        this.accountNumber = accountNumber;
    }

    public String getBank() {
        return bank;
    }

    public void setBank(String bank) {
        this.bank = bank;
    }

    public BaseCompany getBaseCompany() {
        return baseCompany;
    }

    public void setBaseCompany(BaseCompany baseCompany) {
        this.baseCompany = baseCompany;
    }

    public Integer getCarsCount() {
        return carsCount;
    }

    public void setCarsCount(Integer carsCount) {
        this.carsCount = carsCount;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getComments() {
        return comments;
    }

    public void setComments(String comments) {
        this.comments = comments;
    }

    public String getCompanyAddress() {
        return companyAddress;
    }

    public void setCompanyAddress(String companyAddress) {
        this.companyAddress = companyAddress;
    }

    public String getCompanyContact() {
        return companyContact;
    }

    public void setCompanyContact(String companyContact) {
        this.companyContact = companyContact;
    }

    public String getCompanyFax() {
        return companyFax;
    }

    public void setCompanyFax(String companyFax) {
        this.companyFax = companyFax;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getCompanyPhone1() {
        return companyPhone1;
    }

    public void setCompanyPhone1(String companyPhone1) {
        this.companyPhone1 = companyPhone1;
    }

    public String getCompanyPhone2() {
        return companyPhone2;
    }

    public void setCompanyPhone2(String companyPhone2) {
        this.companyPhone2 = companyPhone2;
    }

    public String getCompanyShortName() {
        return companyShortName;
    }

    public void setCompanyShortName(String companyShortName) {
        this.companyShortName = companyShortName;
    }

    public String getCompanyType() {
        return companyType;
    }

    public void setCompanyType(String companyType) {
        this.companyType = companyType;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public DateTime getRegisterTime() {
        return registerTime;
    }

    public void setRegisterTime(DateTime registerTime) {
        this.registerTime = registerTime;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String toString() {
         return String.format("BaseFleetCustomer { accountName : %s,accountNumber : %s,bank : %s,baseCompany : %s,carsCount : %s,city : %s,comments : %s,companyAddress : %s,companyContact : %s,companyFax : %s,companyName : %s,companyPhone1 : %s,companyPhone2 : %s,companyShortName : %s,companyType : %s,email : %s,flag : %s,id : %s,phone : %s,province : %s,qq : %s,registerTime : %s,state : %s }",accountName,accountNumber,bank,baseCompany,carsCount,city,comments,companyAddress,companyContact,companyFax,companyName,companyPhone1,companyPhone2,companyShortName,companyType,email,flag,id,phone,province,qq,registerTime,state);
    }

}

